<?php
/**
 * Created by PhpStorm.
 * User: 50330
 * Date: 2019/4/16
 * Time: 18:43
 */

namespace App\Http\Controllers;


class QQlogin extends Controller
{
    public function qq(){
        return \Socialite::with('qq')->redirect();
    }
    public function qqlogin(){
        $user = \Socialite::driver('qq')->user();

        //获取qq用户信息,并作后续处理
        dd($user);
    }

}